import java.util.Scanner;

public class a004_文文的求婚 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		
		int year;
		String output;
		
		while(input.hasNext()) {
			year = input.nextInt();
			
			if(year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
				output = "閏年";
			else
				output = "平年";
			
			System.out.println(output);
		}
	}
	
}